using Business.ZeroPickOrderManagement;
using Business.ZeroPickOrderManagement.Dto;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Application.Dtos;
using Volo.Abp.AspNetCore.Mvc;

namespace Business.Controllers
{
    [RemoteService]
    [Area("Business")]
    [Route("api/business/ZeroPickOrder")]
    public class ZeroPickOrderController : AbpController
    {
        private readonly IZeroPickOrderAppService _ZeroPickOrderAppService;

        public ZeroPickOrderController(IZeroPickOrderAppService ZeroPickOrderAppService)
        {
            _ZeroPickOrderAppService = ZeroPickOrderAppService;
        }

        [HttpPost]
        [Route("data-post")]
        public Task<ZeroPickOrderDto> DataPost(CreateOrUpdateZeroPickOrderDto input)
        {
            return _ZeroPickOrderAppService.DataPost(input);
        }

        [HttpPost]
        [Route("delete")]
        public Task Delete(List<Guid> ids)
        {
            return _ZeroPickOrderAppService.Delete(ids);
        }

        [HttpGet]
        [Route("{id}")]
        public Task<ZeroPickOrderDto> Get(Guid id)
        {
            return _ZeroPickOrderAppService.Get(id);
        }

        [HttpGet]
        public Task<PagedResultDto<ZeroPickOrderDto>> GetAll(GetZeroPickOrderInputDto input)
        {
            return _ZeroPickOrderAppService.GetAll(input);
        }
    }
}
